<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>首页</title>
    <script src="../../static/js/jquery-3.3.1.min.js"></script>
    <script src="../../static/js/init.js"></script>
    <link rel="stylesheet" href="../../public/global.css">
    <script src="../../static/js/md5.js"></script>
</head>
<body>
    <div id="side"></div>
    <div id="inner">
        <div id="top"></div>
        <div style="margin-top:-5vh">
            <div style="color:#fff;margin-left: 10vw;font-size: 1vw;margin-bottom: 3vh">
                <span style="opacity:0">商户管理</span>
            </div>
            <!-- <div style="margin-left:8.5vw;margin-top:1vh"><img src="../../public/img/line.png" alt=""></div> -->
            <div id="content">
                <div style="margin-left:3vw">
                    <div>
                        <button class="top_botton" style="margin-right: 3vw;color:#fff;font-weight: bold">商户信息</button>
                        <button class="top_botton" style="color:#fff" onclick="go_caiwubaobiao()">财务报表</button>
                    </div>
                    <div style="margin-top:5vh">
                        <div style="width:33vw;height:25vh;background-color:#fff;box-shadow: 0px 1px 10px 0px #eee;margin-right:3vw;float:left">
                            <div style="font-weight:bold;margin-left: 1vw;margin-top: 2vh">商户名称</div>
                            <div style="margin-left: 1vw;margin-top: 2vh"><span style="color:#a2a2a2">商户信息 ：</span><input type="text" id="userInformation"></div>
                            <div style="margin-left: 1vw;margin-top: 1vh">
                                <span style="color:#a2a2a2">商户号 ：</span><span id="merchantNo" style="margin-left:0.9vw"></span>
                                <span style='color:#a2a2a2;margin-left: 2vw'>商户状态</span><span id="state" style="margin-left:1vw"></span>
                            </div>
                            <div style="margin-left: 1vw;margin-top: 1vh"><span style="color:#a2a2a2">账号 ：</span><span id="username" style="margin-left:1.8vw"></span></div>
                            <div style="margin-left: 1vw;margin-top: 1vh"><span style="color:#a2a2a2">手机号 ：</span><span id="telephone" style="margin-left:1vw"></span></div>
                            <div style="margin-left: 1vw;margin-top: 1vh"><span style="color:#a2a2a2">联系人 ：</span><input type="text" id="contacts" style="margin-left:1vw"></div>
                        </div>
                        <div style="width:33vw;height:25vh;background-color:#fff;box-shadow: 0px 1px 10px 0px #eee;float:left">
                            <div style="font-weight:bold;margin-left: 1vw;margin-top: 2vh">余额</div>
                            <div style="margin-left: 1vw;margin-top: 2vh">
                                <span style="color:#a2a2a2">账户余额 ：</span><span id="balance"></span>元
                                <button style="background-color:#666;border: 0;color:#fff;margin-left: 3vw;border-radius: 5px;width: 3.5vw;height:3vh" onclick="chongzhi_show()">充值</button>
                                <button style="background-color:#666;border: 0;color:#fff;margin: 0 3vw;border-radius: 5px;width: 3.5vw;height:3vh" onclick="daifu_show()">代付</button>
                                <button style="background-color:#666;border: 0;color:#fff;border-radius: 5px;width: 3.5vw;height:3vh" onclick="huzhuan_show()">账户互转</button>
                            </div>
                        </div>
                    </div>
                    <div style="margin-top:35vh">
                        <div style="width:33vw;height:25vh;background-color:#fff;box-shadow: 0px 1px 10px 0px #eee;margin-right: 3vw;float:left">
                            <div style="font-weight:bold;margin-left: 1vw;margin-top: 2vh">法人信息</div>
                            <div style="margin-left: 1vw;margin-top: 2vh"><span style="color:#a2a2a2">法人姓名 ：</span><input type="text" id="realName" style="margin-left:0.8vw"></div>
                            <div style="margin-left: 1vw;margin-top: 1vh"><span style="color:#a2a2a2">法人身份证 ：</span><input type="text" id="idCard"></div>
                            <div style="margin-left: 1vw;margin-top: 1vh"><span style="color:#a2a2a2">机构代码 ：</span><input type="text" id="mechanismCode" style="margin-left:0.8vw"></div>
                        </div>
                        <div style="width:33vw;height:25vh;background-color:#fff;box-shadow: 0px 1px 10px 0px #eee;float:left">
                            <div style="font-weight:bold;margin-left: 1vw;margin-top: 2vh">最后登入IP与时间
                                <button style="background-color:#666;border: 0;color:#fff;border-radius: 5px;margin-left: 2vw;width:5vw;height: 3vh" onclick="histroyIP()">查看历史IP</button>
                            </div>
                            <div style="margin-left: 1vw;margin-top: 2vh"><span style="color:#a2a2a2">最后登入IP ：</span><span id="ip"></span></div>
                            <div style="margin-left: 1vw;margin-top: 1vh"><span style="color:#a2a2a2">最后登入时间 ：</span><span id="time"></span></div>
                        </div>
                    </div>
                </div>
            </div>
            <div style='margin-top: -12vh;margin-left: 41.2vw'><button style="background-color:#666;border: 0;color:#fff;border-radius: 5px;width: 3.5vw;height:3vh" onclick="update_save()">保存修改</button></div>
        </div>
    </div>
    <!-- 代付 -->
    <div id="daifu_show" style="position:absolute;left:29vw;top:26vh;display: none;background-color: #fff;width:50vw;height: 52vh;border-radius: 6px;box-shadow: 0px 1px 10px 0px #bcbcbc">
        <div style="margin-left:1vw;margin-top:2vh;font-size:1.3vw;font-weight:bold">代付</div>
        <div style="margin-left:2vw;margin-top:3vh">
            <div>商<span style="margin: 0 0.4vw">户</span>号 : <span style="margin-left:1vw" id="daifu_merchantNo"></span></div>
            <div style="margin-top:1vh">代付金额 : <input type="text" style="margin-left:1vw;margin-right: 1vw" id="daifu_amount">元</div>
            <div style="margin-top:1vh">手<span style="margin: 0 0.4vw">续</span>费 : <span style="margin-left:1vw" id="daifu_poundage"></span>元</div>
            <div id="daifu_limit">
                <div style="margin-top:1vh">开<span style="margin: 0 0.4vw">户</span>行 : <input type="text" style="margin-left:1vw" id="daifu_bankName"></div>
                <div style="margin-top:1vh">持<span style="margin: 0 0.4vw">卡</span>人 : <input type="text" name="" id="daifu_bankUsername" style="margin-left:1vw"></div>
                <div style="margin-top:1vh">银行卡号 : <input type="text" style="margin-left:1vw" id="daifu_bankCard"></div>
                <div style="margin-top:1vh;margin-left: 0.8vw">手机号 : <input type="text" name="" id="daifu_bankPhone" style="margin-left:1vw" readonly></div>
                <div style="margin-top:2vh" id="daifu_code">验<span style="margin: 0 0.4vw">证</span>码 : 
                    <input type="text" id="daifu_code1" placeholder="输入验证码" style="color:#c7c7c7;margin:0 1vw;min-width: 100px;width: 100px;;">
                    <button style="color:#eee;border: 0;color: #000" id="daifu_get" onclick="daifu_get()">免费获取验证码</button>
                </div>
                <div style="margin-top:1vh">安全密码 : <input type="password" style="margin-left:1vw" id="daifu_password"></div>
            </div>
            <!-- <div style="margin-top:3vh"><input type="textarea" value="备注 : " style="width:44vw;height:7vh" id="daifu_body"></div> -->
            <div style="float:right;margin-right: 4vw">
                <button style="background-color:#474c79;border-radius: 5px;color:#fff;width:3vw;height: 3vh;margin-top: 3vh;" onclick="daifu_close()">取消</button>
                <button style="background-color:#474c79;border-radius: 5px;color: #fff;margin-left: 2vw;width: 3vw;height: 3vh;" onclick="daifu_OK()">确定</button>
            </div>
        </div>
    </div>
    <!-- 充值 -->
    <div id="chongzhi_show" style="position:absolute;left:29vw;top:26vh;display: none;background-color: #fff;width:50vw;height: 52vh;border-radius: 6px;box-shadow: 0px 1px 10px 0px #bcbcbc">
        <div style="margin-left:1vw;margin-top:2vh;font-size:1.3vw;font-weight:bold">充值</div>
        <div style="margin-left:2vw;margin-top:3vh">
            <div style="border:1px solid #000;width:41vw;height:23vh;margin-top: 3vh;padding-left: 5vw;padding-top: 4vh">
                <div style="font-weight:bold;margin-top: 2vh">姓名 : <span id="chongzhi_name"></span>
                    <!-- <button style="border-radius:5px;background-color:red;color:#fff"></button> -->
                </div>
                <div style="font-weight:bold;margin-top: 2vh">银行 : <span id="chongzhi_bankName"></span>
                    <!-- <button style="border-radius:5px;background-color:red;color:#fff"></button> -->
                </div>
                <div style="font-weight:bold;margin-top: 2vh">所属银行 : <span id="chongzhi_bankNameSon"></span>
                    <!-- <button style="border-radius:5px;background-color:red;color:#fff"></button> -->
                </div>
                <div style="font-weight:bold;margin-top: 2vh">银行卡卡号 : <span id="chongzhi_rechargeBankCard"></span>
                    <!-- <button style="border-radius:5px;background-color:red;color:#fff"></button> -->
                </div>
            </div>
            <div style="border:1px solid #000;margin-top:3vh;width:46vw;height:6vh">
                <div style="margin-left:1vw;margin-top:1vh">
                    存款姓名 : <input type="text" style="min-width: 50px;width: 85px;margin-right: 3vw;" id="chongzhi_bankUsername">
                    存款卡号 : <input type="text" style="margin-right: 3vw" id="chongzhi_bankCard">
                    存款金额 : <input type="text" id="chongzhi_amount" onblur='chongzhi_yujidaozhang()'>
                </div>
                <div style="color:red;float: right;display: none;margin-right: 7vw" id="chongzhi_jisuan">手续费<span id="chongzhi_rechargeRate" style="margin-right:1vw"></span>预计到账金额<span id="chongzhi_yujidaozhang"></span></div>
            </div>
            <div style="float:right;margin-right: 4vw">
                <button style="background-color:#474c79;border-radius: 5px;color:#fff;width:3vw;height: 3vh;margin-top: 3vh;" onclick="chongzhi_close()">取消</button>
                <button style="background-color:#474c79;border-radius: 5px;color: #fff;margin-left: 2vw;width: 3vw;height: 3vh; " onclick="chongzhi_OK()">确定</button>
            </div>
        </div>
    </div>
    <!-- 互转 -->
    <div id="huzhuan_show" style="position:absolute;left:29vw;top:26vh;display: none;background-color: #fff;width:50vw;height: 52vh;border-radius: 6px;box-shadow: 0px 1px 10px 0px #bcbcbc">
        <div style="margin-left:1vw;margin-top:2vh;font-size:1.3vw;font-weight:bold">账户互转</div>
        <div style="margin-left:2vw;margin-top:3vh">
            <div style="margin-top:1vh">互转金额 : <input type="text" style="margin-left:1vw;margin-right: 1vw" id="huzhuan_amount">元</div>
            <div style="margin-left:-0.8vw;margin-top:1vh">对方商户号 : <input type="text" style="margin-left:1vw" id="huzhuan_merchantNo"></div>
            <div style="margin-top:1vh">手<span style="margin: 0 0.4vw">续</span>费 : <span style="margin-left:1vw" id="huzhuan_poundage"></span>元</div>
            <div id="daifu_limit">
                <div style="margin-top:1vh">对方账号 : <input type="text" style="margin-left:1vw" id="huzhuan_username"></div>
                <div style="margin-top:1vh;margin-left: 0.8vw">手机号 : <input type="text" name="" id="huzhuan_bankPhone" style="margin-left:1vw" readonly></div>
                <div style="margin-top:2vh" id="huzhuan_code">验<span style="margin: 0 0.4vw">证</span>码 : 
                    <input type="text" id="huzhuan_phonecode" placeholder="输入验证码" style="color:#c7c7c7;margin:0 1vw;min-width: 100px;width: 100px;;">
                    <button style="color:#eee;border: 0;color: #000" id="huzhuan_get" onclick="huzhuan_get()">免费获取验证码</button>
                </div>
                <div style="margin-top:1vh">安全密码 : <input type="password" style="margin-left:1vw" id="huzhuan_password"></div>
            </div>
            <!-- <div style="margin-top:3vh"><input type="textarea" value="备注 : " style="width:44vw;height:7vh" id="daifu_body"></div> -->
            <div style="float:right;margin-right: 4vw">
                <button style="background-color:#474c79;border-radius: 5px;color:#fff;width:3vw;height: 3vh;margin-top: 3vh;" onclick="huzhuan_close()">取消</button>
                <button style="background-color:#474c79;border-radius: 5px;color: #fff;margin-left: 2vw;width: 3vw;height: 3vh;" onclick="huzhuan_OK()">确定</button>
            </div>
        </div>
    </div>
    <div id="reset_show" style="position:absolute;left:29vw;top:26vh;display: none;background-color: #fff;width:50vw;height: 52vh;border-radius: 6px;box-shadow: 0px 1px 10px 0px #bcbcbc">
        <div style="margin-left:1vw;margin-top:2vh;font-size:1.3vw;font-weight:bold">由于您是第一次登陆，请重置手机号和密码</div>
        <div style="margin-left:2vw;margin-top:3vh">
            <div style="margin-top:1vh">手机号 : <input type="text" style="margin-left:1vw;margin-right: 1vw" id="reset_phone"></div>
            <div style="margin-left:-0.8vw;margin-top:1vh">安全密码 : <input type="password" style="margin-left:1vw" id="reset_safepassword"></div>
            <div style="margin-left:-0.8vw;margin-top:1vh">支付密码 : <input type="password" style="margin-left:1vw" id="reset_zhifupassword"></div>
            <!-- <div style="margin-top:3vh"><input type="textarea" value="备注 : " style="width:44vw;height:7vh" id="daifu_body"></div> -->
            <div style="margin-top:2vh" id="reset_code">验<span style="margin: 0 0.4vw">证</span>码 : 
                <input type="text" id="reset_phonecode" placeholder="输入验证码" style="color:#c7c7c7;margin:0 1vw;min-width: 100px;width: 100px;;">
                <button style="color:#eee;border: 0;color: #000" id="reset_get" onclick="reset_get()">免费获取验证码</button>
            </div>
            <div style="float:right;margin-right: 4vw">
                <button style="background-color:#474c79;border-radius: 5px;color: #fff;margin-left: 2vw;width: 3vw;height: 3vh;" onclick="reset_OK()">确定</button>
            </div>
        </div>
    </div>
</body>
<script>var dangqian = '1';</script>
<script src="../../public/include.js"></script>
<script src="shouye.js"></script>
</html>